<!doctype html>
<html>
<head></head>
<body>
<div style="background-color:#ccc;">
	<a href="javascript:;">测试数据</a>
	<div class="aaa">aaa</div>
	<div class="bbb">bbb</div>
	<div class="ccc">ccc</div>
	<div class="ddd">ddd</div>
</div>
<script src="../../dist/ger.js"></script>
<script src="jquery.js"></script>
<script>
$(function (){
	window.error_report = new GER({
	    url:'https://www.gomeplus.com/ajax/log/index?err_msg=',
	    repeat:5,
	    delay: 1000,
	    validTime : 3,
	    // proxyAll: true,
	    proxyAll: true
	});

	$('.aaa').on('click', function (){
		// aaa;
		alert('aaa');
	});
	$('.bbb').off('click').on('click', function (){
		// bbb;
		alert('bbb');
	});
	$('.ccc').off('click').on('click', function (){
		// ccc;
		$.ajax({
			url: 'http://10.69.13.31/report/list',
			type: 'post',
			dataType : 'json',
			data: {
				'local' : 'meixincdn.com'
			},
			success : function (data){
				alert(JSON.stringify(data));
			}
		});
	});
	var a = 1;
	/*error_report.setItem([{
	    'sd' : {
	        value: 'abnm',
	        expiresTime: 20
	    }
	}]);*/
	setTimeout(function(){
		alert(JSON.stringify(error_report.getItem('mx-error')));
		// console.log(a); 
	},1000);
});
</script>
</body>
</html>
